package com.martys.singleton02;


public class Application {

	//测试这个用静态代码块实现的饿汉式单例模式
	public static void main(String[] args) {
		Singleton02 instance1 = Singleton02.getInstance();
		System.out.println("instance1 hashcode： "+instance1.hashCode());
		Singleton02 instance2= Singleton02.getInstance();
		System.out.println("instance2 hashcode： "+instance2.hashCode());
	}

}
